package com.wxx;

/**
 * @author: Jetwang
 * @date: 2022/4/1 22:23
 * @description: LinkedListTest 链表测试
 * @version: 1.0
 */
public class LinkedListTest {
    public static void main(String[] args) {
        LinkedList<Integer> linkedList = new LinkedList<>();
        for (int i = 0; i < 10; i++) {
            linkedList.addFirst(i);
        }
        linkedList.add(2, 666);
        linkedList.remove(5);
        System.out.println(linkedList);
        Integer num = linkedList.get(5);
        System.out.println(num);
    }
}
